package com.zhang.common.generator.sequenceid;

/**
 * 主机和进程的机器码生成ID
 * logId = IdWorker.getId();
 * 19位数字
 */
public class IdWorker {

	/**
	 * 主机和进程的机器码
	 */
	private static Sequence worker = new Sequence();

	public static String getId() {
		return String.valueOf(worker.nextId());
	}

	public static void main(String[] args) {
		System.out.println(IdWorker.getId());
	}
}
